<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>显示单个资源</title>
    
    <style type="text/css">
        td{
            height:50px;
            width:200px;
            text-align:left;
        }
    </style>
    
    <script language="JavaScript">
        function doDigg( id, n )
        {
            window.location="/resource/diggResource/" + id + "/" + n + "/";
        }
    </script>
    
</head>

<body>
    <table align="center" frame="box" rules="rows">
        <tr>
        <td>类型：</td>
        <td>{{ resource.type }}</td>
        </tr>
        <tr>
        <td>标题：</td>
        <td>{{ resource.title }}</td>
        </tr>
        <tr>
        <td>内容：</td>
        <td>{{ resource.content }}</td>
        </tr>
        <tr>
        <td>URL：</td>
        <td>{{ resource.url }}</td>
        </tr>
        <tr>
        <td>描述：</td>
        <td>{{ resource.description }}</td>
        </tr>
        <tr>
        <td>digg：</td>
        <td>{{ resource.digg }}</td>
        </tr>
        <tr>
        <td>分类：</td>
        <td></td>
        </tr>
        <tr>
        <td>标签：</td>
        <td></td>
        </tr>
        <tr>
        <td align="center"><button type="button" onclick="doDigg( {{ resource.id }}, 1 );" ><font size="6" color="red">顶!</font></button></td>
        <td align="center"><button type="button" onclick="doDigg( {{ resource.id }}, -1 );" ><font size="6" color="greed">踩!</font></button></td>
        </tr>
    </table>
</body>
</html>